package com.qingneng.budget.util;

public class PaginationBean {
	

    private static final long serialVersionUID = 1L;
    private int pageNo;
    private int pageSize;
    private int startIndex;
    public int getStartIndex() {
		return startIndex;
	}

	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	private Integer count;

    public PaginationBean()
    {
    }

    public Integer getCount()
    {
        return count;
    }

    public void setCount(Integer count)
    {
        this.count = count;
    }

    public int getPageNo()
    {
        return pageNo;
    }

    public void setPageNo(int pageNo)
    {
        this.pageNo = pageNo;
    }

    public int getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(int pageSize)
    {
        this.pageSize = pageSize;
    }

    public int getStart()
    {
        return getPageSize() * (getPageNo() - 1);
    }

    public int getEnd()
    {
        return getPageSize() * getPageNo();
    }

}
